package com.ftg.learn.chapter14.connect;

/**
 *  extends object Object
 * 人类 pojo : 最简单的java bean java.class
 * @author KangJx
 * @date 2021/7/22
 */
public class Human {

    private String name;

    private char sex;

    private int age;


    @Override
    public String toString(){
        return "姓名："+this.getName()+";性别:"+this.getSex()
                +";年龄:"+this.getAge()+"身份证号为:"+this.getId().getCardNo();
    }

    /**
     * 核心 身份证
     */
    private IdCard id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public IdCard getId() {
        return id;
    }

    public void setId(IdCard id) {
        this.id = id;
    }
}
